<!DOCTYPE html>
<html>
	<head>
		<script src="jquery.js" ></script>
		<style type="text/css">
			img{
				position:absolute;
				transition: opacity 2s; /*Dauer bei Änderung von Transition -> FadeOut */
				-webkit-transition: opacity 2s; /* Safari */
			}
		</style>
	</head>
	<body>
		<img src="img1.jpg">
		<img src="img2.jpg">
		<img src="img3.jpg">
		<img src="img4.jpg">
		<script>
			var actElement = $('img').last().prev();
			var int = self.setInterval(function(){changeImage()},5000)
			function changeImage(){
				$('img').each(function(){
					if($(this).attr('src') === actElement.attr('src')){
						$(this).css('opacity',1);
					} else{
						$(this).css('opacity',0);
					}
				});
				if(actElement.prev().attr('src') !== undefined){
					actElement = actElement.prev();
				} else{
					actElement = $('img').last();
				}
			}
		</script>
	</body>
</html>